package rs;

public class Conf {
	
	// JobManager 检查job的路径
	public static final String JOB_DESCRIPTION_DIR = "jobs";

	// JobManager 检查job类型变化的频率
	public static int JOB_CHECKING_PERIOD_IN_SECOND = 60;
	
	// ProjectManager 检查project的路径
	public static final String PROJECT_DESCRIPTION_DIR = "projects";
	// ProjectManager 检查project的频率
	public static final int PROJECT_CHECKING_PERIOD_IN_SECOND = 60;
	// Tasks 目录
	public static final String TASK_DIR = "tasks";
	// ProjectManager 检查project的频率
	public static final int TASK_CHECKING_PERIOD_IN_SECOND = 60;
	
	// ModelSeller 远程传输地址
	public static final String REMOTE_ADDRESS = "http://localhost:9000/api.Reciever/g";
	
	// Extractor 抽取的正则标识和属性标识
	public static final String REGEXP_SIGN = "#REG#";
	public static final String ATTR_SIGN = "#ATTR#";
	public static final String MULTI_SIGN = "#MANY#";


	//代理最常请求时间,默认10秒.
	public static final int PROXY_MAX_REQUEST_TIME = 10000;
	
	//http请求超时时间.默认30秒
	public static final int CRAWLER_HTTP_TIMEOUT = 30000;
	
	//相同host的地址请求间隔毫秒数, 默认为10000毫秒(10秒).
	public static final int SAME_HOST_DELAY = 1000;

	//同一代理最大连续请求失败次数,超过该次数则该代理被废弃.
	public static int MAX_CONTINUS_FAILURE = 3;
	//同一代理最大连续请求失败次数,超过该次数则该代理被废弃.
	public static String PROXY_FILE_PATH = "config/proxy.txt";
	
	public static String PROXY_CHECK_URL = "http://www.baidu.com/";
	
	public static String PROXY_CHECK_STRING = "百度";
	
}
